package com.zzz.system.vo;

import com.zzz.codegen.config.GroupConfig;
import com.zzz.framework.util.MyBeanUtil;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

@Accessors(chain = true)
@Getter
@Setter
@NoArgsConstructor
public class TemplateGroupVO {

    private Long id;

    /**
     * 编号
     */
    private String code;

    /**
     * 项目路径，不包含/src/main/java
     */
    private String sourceDir;

    /**
     * 作者
     */
    private String author;

    /**
     * since
     */
    private String since;

    /**
     * 基础包路径，如 com.ai.demo
     */
    private String basePackage;

    /**
     * 表前缀，entity配置。gen_,tp_
     */
    private String tablePrefix = "";

    public GroupConfig toGroupConfig() {
        return MyBeanUtil.copyBean(this, GroupConfig.class);
    }
}
